#include "rf-module.h"

//TODO: come up with barebone structure

bool trasmit(__packet data){
	//TODO: think of something
	transmitter_set(data[i].getmodes()); //apple modes to hardware
	if(!__transmit(data[i].getmsg()) //if everything goes well, return true, otherwise false
			return false;
	return true;
}

__packet receive(rf_mode modes){
	//TODO: think of something
	__packet packet; //data holder
	receiver_set(modes); //apply modes
	packet = listen(); //listen
	packet.setmodes(modes); //append the used modes to the packet
	return packet;
}